package com.app.util.db.bean;

import com.app.util.db.util.SqlNameTranser;

public class OrderItem {

	public enum OrderType {
		ASC, DESC
	}

	private String field;
	private OrderType type;

	public OrderItem(String field, OrderType type) {
		this.field = field;
		this.type = type;
	}

	public OrderItem(String field) {
		this.field = field;
		this.type = OrderType.ASC;
	}

	public String getField() {
		return field;
	} 

	public OrderType getType() {
		return type;
	}

	public String toString() {
		return SqlNameTranser.IT.toString(field) + " " + type;
	}
}